﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="<?php echo $ff6['title'];?>">
<link rel="apple-touch-icon-precomposed" href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>favicon.ico">
<link href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/list.css" rel="stylesheet" type="text/css">
<meta http-equiv="cache-control" content="no-siteapp">
<title> <?php echo $keys.' - '.$ff6['sitename'];?></title>
<meta name="keywords" content="<?php echo strip_tags($search['name']);?>全章在线免费阅读" />
<meta name="description" content="<?php echo strip_tags($search['name']);?> 小说简介：<?php echo $search['desc'];?>" />
<link rel="stylesheet" id="main-css" href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/style.css" type="text/css" media="all">
<link rel="stylesheet" href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/play.css" type="text/css">
<script type="text/javascript" src="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/jquery.min.js?ver=0.5"></script>
<!--[if lt IE 9]><script src="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/html5.js"></script><![endif]-->
<script type="text/javascript">
var initial_fontsize    = 14;
var initial_lineheight  = 24;
function setFontsize(type,objname){
    var whichEl = document.getElementById(objname);
    if (whichEl!=null) {
        if (type==1){
            if(initial_fontsize<24){
                whichEl.style.fontSize=(++initial_fontsize)+'pt';
                whichEl.style.lineHeight=(++initial_lineheight)+'pt';
            }
        }else {
            if(initial_fontsize>8){
                whichEl.style.fontSize=(--initial_fontsize)+'pt';
                whichEl.style.lineHeight=(--initial_lineheight)+'pt';
            }
        }
    }
}
</script>
</head>
<?php include (ROOT_PATH.'/view/'.$ff6['model'].'/headter.php');?>
<div class="am-cf"></div>
<div class="am-panel am-panel-default">
<div class="am-panel-bd">
<div class="video-list view-font">
<div id="pos" class="top-list-ji">
<h2 class="title g-clear"><em class="a-bigsite a-bigsite-leshi">正在阅读小说 《<?php echo $search['name'];?>》 <?php echo $show['chapters'][$c]['title'];?></em></h2>
<h3 class="single-strong">章节（共<?php echo $show['count'];?>章）（来源：<span id="source" style="color:green;">检测中……</span>）</h3>
</div>
</div>
<input onclick="setFontsize(0,'moredata')"  type="button" value="小字"> 
<input onclick="setFontsize(1,'moredata')" style="float:right;" type="button" value="大字">

<div class="js_onclick">
<div style="float:right;">

<?php
	// $next = '<a onclick="moreData()" style="float:right;">下一章</a>';
?>

<a href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>?src=<?php echo $_GET['md'];?>&c=<?php echo $c;?>">切换资源</a><?php echo $next;?>
</div>
<?php
echo '新章 ：<a href="http://'.$ff6['pcdomain'].$ff6['path'].'?md='.$_GET['md'].'&sid='.$sid.'&site='.$site.'&c='.($show['count']-1).'">'.$show['meta']['latest']['title'].'</a>';

?>
<a id="anchor_scroll" href="#bof" style="display:none"></a><div class="clearfloat"></div>
<div id="moredata" class="content" style="font-size:18px;background:#E8F4F4;"><div id="tishi" style="text-align: center;"></div><span id="loading"></span></div><?php echo $pre;?><?php echo $next;?><div style="text-align: center;color:red;background:#E4E5E2;"><a href="#" id="show">章节目录 </a><a href="#" id="His">我看过的书 </a>章节错误，请点击☛<a href="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>?src=<?php echo $_GET['md'];?>&c=<?php echo $c;?>">切换资源 </a>
</div>
<div id="morebtn" style="height:30px; border:1px solid #CCC; background-color:#EDEAEA; text-align:center; line-height:32px; cursor:pointer; overflow:hidden;" onclick="moreData()"><span style="color:green;">点击开始阅读</span>
</div>
<div id="chapters" style="display:none;background:#EDEAEA;">
<?php
if($reverse){	
	foreach($reverse as $k => $v) {
		echo '<a href="http://'.$ff6['pcdomain'].$ff6['path'].'?md='.$_GET['md'].'&sid='.$sid.'&site='.$site.'&c='.$k.'">'.$v['title'].'</a>';
	}
	unset($k,$v);
}
?>  
</div>
<div id="History" style="display:none;background:#EDEAEA;">
未找到您最近浏览记录
</div>
</div>
<div style="clear: both;"></div>
<div style="text-align:center;color: #fff;font-size: 16px;background: #FF6E76;padding:7px 8px;border-radius: 2px;">☆提示：喜欢本书就分享给您的朋友吧！☆</div>
<div align="center"><?php echo $ads['ads_play'];?></font></div>
<div style="clear: both;"></div>
<p class="jianjie"><h3 class="single-strong">简介</h3><img src="<?php echo $search['img'];?>"></a><p class="item-desc js-close-wrap" >《 <?php echo $search['name'];?> 》 作者：<?php echo $search['author'];?> 类型：<?php echo $search[classify];?> 最后更新：<?php echo $search['uptime'];?> <?php echo $search['desc'];?></p>
<h3 class="single-strong">站长推荐</h3>
<p>要是看累了，不如用耳朵来听听 <a class="am-btn am-btn-default lipbtn" href="#" target="_blank"> 《<?php echo strip_tags($search['name']);?>》</a></p>
<div style="clear: both;"></div>
</div>
<input name="pagenum" id="pagenum" type="hidden" value="<?php echo $_GET['c']+2;?>" />
<script type="text/javascript" src="http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/History.js"></script>
<script type="text/javascript">
function moreData(){ 
      var pagenum = parseInt($("#pagenum").val());
	    $("#morebtn").html('拼命加载中...');
		$.get("./?aj=<?php echo $_GET['md'];?>&sid=<?php echo $_GET['sid'];?>&site=<?php echo $_GET['site'];?>", {p: pagenum,more:1},
		 function(data){
		   if(pagenum == <?php echo $show['count'];?> /* && data.indexOf('NONO_NO_NONO')>=0 */){
		   $("#moredata").html('没有内容了...请选择下一页');
		   }else{
			  $("#moredata").append(data);
		      $("#pagenum").val(pagenum+1); 
		   }
		  
		   $("#morebtn").html('点击加载下一章节↓');
		 });
}

</script>
<script type="text/javascript">  
//内容转码
function go(){
   $("#loading").html("<div style='text-align: center;'><img src='http://<?php echo $ff6['pcdomain'].$ff6['path'];?>static/loading.gif' ><p>转码中！ 请稍等...</p></div>");
	var ffajax=$.ajax({  
		type:'post',  
		url:'./?aj=1', 
		timeout : 10000, //超时时间设置，单位毫秒
		data:{'url':'<?php echo $show['chapters'][$c]['url'];?>','type':'search','title':'<?php echo $show['chapters'][$c]['title'];?>'},  
		cache:false,
		//async:false,  
		dataType:'html',  
		success:function(msg){
			$('.content').html(msg); 
            $("#loading").html('');
		},  
		error:function(){$('#loading').html('<div align="center" style="font-size:20px;"><p>网络超时，请检查网络或刷新网页</p></div>');} 
   });
}  go();

</script>
<script type="text/javascript">
var al = $('.js_onclick a');
al.attr('class','am-btn am-btn-default lipbtn');
var ji= new Array();
var btnji= new Array();
for(var g=0;g<al.length;g++){
ji.push(al[g].href);
btnji.push(al[g].id);
al[g].target = '_self';
al.eq(g).attr();
};
</script>
<script type="text/javascript">
tim=1
setInterval("tim++",100)
var autourl=new Array()
autourl[1]="<?php echo $source;?>"
function auto(url){
document.getElementById('source').innerHTML = url+" 已耗时 "+tim/10+" 秒";}
function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl[i]+"/"+Math.random()+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")}
run()
</script>
<script>
$chapters = $("#chapters");
$("#show").on({
	"click": function(){
		$chapters.toggle();
		return false;
	}
});
$(document).on({
	"click": function(e){
		var src = e.target;
		if(src.id && src.id ==="chapters"){
			return false;
		}else{
			$chapters.hide();
		}
	}
});
$History = $("#History");
$("#His").on({
	"click": function(){
		$History.toggle();
		return false;
	}
});
$(document).on({
	"click": function(e){
		var src = e.target;
		if(src.id && src.id ==="History"){
			return false;
		}else{
			$History.hide();
		}
	}
});
</script>
<script type="text/javascript">
     var listCount = 10;//记录和显示最近几条
     var myTitle = escape('<?php echo $show['chapters'][$c]['title'].' - '.strip_tags($search['name']);?>') + "^";//取标题
     var myUrl = escape(document.URL) + "$";//取地址
     var expTime = new Date(new Date().setDate(new Date().getDate() + 365));//设定过期时间为500天
     var edp = "|; expires=" + expTime.toGMTString() + "; path=/"; //; domain=xiaolin.net //组合Cookie参数
     var allCookie = document.cookie; //取出全部Cookie
     if(allCookie.indexOf("news=") != -1 || allCookie.indexOf("$|") != -1){//判断是否为第一次浏览
         var myCookieStart = allCookie.indexOf("news=") + "news=".length;
         var myCookieEnd = allCookie.indexOf("$|",myCookieStart);
         var myCookieall = unescape(allCookie.substring(myCookieStart,myCookieEnd));
         var myCookie = myCookieall.split("$");
         var myCookieTit = new Array();
         var myCookieUrl = new Array();
         for(var i = 0; i < myCookie.length; i++){
             var myCookieOne = myCookie[i].split("^");
             myCookieTit[i] = myCookieOne[0];
             myCookieUrl[i] = myCookieOne[1];
         }
     var newCookie = "";//************************************************
     if(myCookie.length < listCount){
         for(i in myCookie){
             if(myCookieTit[i] == '<?php echo $show['chapters'][$c]['title'].' - '.strip_tags($search['name']);?>') continue;//去除重复 
             newCookie += escape(myCookieTit[i]) + "^" + escape(myCookieUrl[i]) + "$" ;
         }
     }else{
         for(var i = 1; i < listCount; i++){
             if(myCookieTit[i] == '<?php echo $show['chapters'][$c]['title'].' - '.strip_tags($search['name']);?>') continue;
             newCookie += escape(myCookieTit[i]) + "^" + escape(myCookieUrl[i]) + "$" ;
         }
     }
     document.cookie = "news=" + newCookie + myTitle + myUrl + edp;//**********
     }else{//
         document.cookie = "news="+ myTitle + myUrl + edp;  
     }
</script>
</div>
<?php include (ROOT_PATH.'/view/'.$ff6['model'].'/footer.php');?>